using System;
using System.Windows.Forms;

namespace pal.SvnConf.GUI
{
    public partial class CreateGroupControl : UserControl
    {
        private GroupCreationHandler _groupCreationHandler;

        public CreateGroupControl()
        {
            InitializeComponent();
        }

        private void OnChangePasswordClick(object sender, EventArgs e)
        {
            if (_groupCreationHandler != null)
                _groupCreationHandler(_txtGroupName.Text);
        }

        public event GroupCreationHandler OnGroupCreation
        {
            add { _groupCreationHandler += value; }
            remove { _groupCreationHandler -= value; }
        }
    }

    public delegate void GroupCreationHandler(string groupName);
}